21 #define D(x) cout << #x " is " << x << endl
25 while (x
% 2 == 0) p
.push_back(2), x
/= 2;
26 for (int d
=3; 1LL*d
*d
<= 1LL*x
; d
+= 2){
27 while (x
% d
== 0) p
.push_back(d
), x
/= d
;
29 if (x
> 1) p
.push_back(x
);
32 for (int i
=1; i
<p
.size(); ++i
){
33 printf(" x %d", p
[i
]);
40 while (scanf("%d", &n
)==1 && n
){
42 if (n
< 0) printf("-1 x "), funkie(-n
);